package Api;

class PrintUtil {
    public static <T> void printArray(T[] array){
        for (T element : array){
            System.out.print(element+" ");
        }
    }
}

public class GenericDemo03 {
    public static void main(String[] args) {
        Integer [] array={1,2,3};
        PrintUtil.printArray(array);
        String[] array1 ={"a","b"};
        PrintUtil.printArray(array1);
    }
}
